package com.computercourse.auth.client;

import com.computercourse.framework.client.CicServiceList;
import com.computercourse.framework.domain.ucenter.ext.CicUserExt;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Feng.Yuan
 * @description
 * @date 2020/2/19 11:45 上午
 * @return
 */
@FeignClient(value = CicServiceList.CIC_SERVICE_UCENTER)
public interface UserClient {

    /**
     * 根据账号查询用户信息
     */
    @GetMapping("/ucenter/getuserext")
    CicUserExt getUserext(@RequestParam("username") String username);
}
